<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>

</head>
<body>
    <div id="app">
       <template v-if="awesome">    
           <h1>template语句</h1>
           <div>if-else语句</div>
           <h1>哈哈哈</h1>
       </template>

    </div>    

    <script>
        // template=`<h1>template替换内容</h1>`
        var app = new Vue({
            el:"#app",
            // template,
            data:{
                awesome:true,
              
            },
           
        });
    </script>
</body>
</html>
